From: Aaron Schulz Date: Wed, 27 May 2009 13:46:46 +0000 (+0000) Subject: reverted r49742 per CR; also it doesn't handle subpages anyway X-Git-Tag: 1.31.0-rc.0~41635 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=edcefd5186c15ba1efcc72ce00647df9b654afbd;p=lhc%2Fweb%2Fwiklou.git reverted r49742 per CR; also it doesn't handle subpages anyway --- diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index 25e07957c0..b4a7b5f363 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -467,7 +467,7 @@ class IPBlockForm { # Set *_deleted fields if requested if( $this->BlockHideName ) { - self::suppressUserName( $this->BlockAddress, $userId, $reasonstr ); + self::suppressUserName( $this->BlockAddress, $userId ); } # Only show watch link when this is no range block @@ -497,20 +497,7 @@ class IPBlockForm { } } - public static function suppressUserName( $name, $userId, $reason = '' ) { - $user = User::newFromName( $name, false ); - # Delete the user pages that exists - $title = $user->getUserPage(); - if( ($id = $title->getArticleID(GAID_FOR_UPDATE)) ) { - $article = new Article( $title ); - $article->doDeleteArticle( $reason, true /*suppress*/, $id ); - } - # Delete the user talk pages that exists - $title = $user->getTalkPage(); - if( $id = $title->getArticleID(GAID_FOR_UPDATE) ) { - $article = new Article( $title ); - $article->doDeleteArticle( $reason, true /*suppress*/, $id ); - } + public static function suppressUserName( $name, $userId ) { $op = '|'; // bitwise OR return self::setUsernameBitfields( $name, $userId, $op ); }